<form (submit)="$event.preventDefault()">
  <mat-form-field>
    <mat-label>First name</mat-label>
    <input matInput #first>
    @if (firstNameAutofilled) {
      <mat-hint>Autofilled!</mat-hint>
    }
  </mat-form-field>
  <mat-form-field>
    <mat-label>Last name</mat-label>
    <input matInput #last>
    @if (lastNameAutofilled) {
      <mat-hint>Autofilled!</mat-hint>
    }
  </mat-form-field>
  <button mat-raised-button>Submit</button>
</form>
